﻿<UserControl x:Class="VAdvantage.Apps.AForms.VInvoiceGen"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
     xmlns:my="clr-namespace:SLControls.Controls;assembly=SLControls" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" xmlns:my1="clr-namespace:VAdvantage.Controls" >

    <Grid>
        <Grid x:Name="LayoutRoot" Background="White" Height="Auto" Width="Auto">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="17" />
        </Grid.RowDefinitions>
        <!--<my:VDataGrid AutoGenerateColumns="False" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="vdgvMainGrid" VerticalAlignment="Stretch" Width="Auto" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" />-->

        <my:VTabControl HorizontalAlignment="Stretch" Margin="5" Name="vtabControlInvoice" VerticalAlignment="Stretch" SelectionChanged="vtabControlInvoice_SelectionChanged">
            <sdk:TabItem Header="sel" Name="tabsel">
                <Grid Name="vdgvtabSelect" Height="Auto">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="7*" />
                        <ColumnDefinition Width="2*" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="7*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <my:VLabel Grid.Column="1" Height="Auto" HorizontalAlignment="Right" Margin="5,0" Name="vlblOrg" VerticalAlignment="Center" Width="Auto" Content="hello" HorizontalContentAlignment="Right" VerticalContentAlignment="Center"/>
                        <my:VLabel Grid.Column="4" Height="Auto" HorizontalAlignment="Right" Margin="5,0" Name="vlblBPartner" VerticalAlignment="Center" Width="Auto" Content="hello" HorizontalContentAlignment="Right" VerticalContentAlignment="Center"/>
                    <my:VDataGrid AutoGenerateColumns="False" Grid.ColumnSpan="7" Grid.Row="1" HorizontalAlignment="Stretch" Name="vdgvRecords" VerticalAlignment="Stretch" Width="Auto" Margin="0,5,0,0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" />
                    <my:VImage Icon="/VAdvantage;component/Images/right_up.png" Grid.Column="5" Grid.ColumnSpan="2" Grid.Row="2" Height="35" HorizontalAlignment="Right" Margin="0,5,0,0" Name="vbtnOk" VerticalAlignment="Center" Width="35" Click="vbtnOk_Click" />
                    <my:VImage Icon="/VAdvantage;component/Images/cancel_up.png" Grid.Column="5" Grid.ColumnSpan="2" Grid.Row="2" Height="35" HorizontalAlignment="Right" Margin="0,5,38,0" Name="vbtnCancel" VerticalAlignment="Center" Width="35" Click="vbtnCancel_Click" />
                </Grid>
            </sdk:TabItem>
            <sdk:TabItem Header="gen" Name="tabgen">
                <Grid Height="Auto" Name="vdgvTabGenerate">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="215*" />
                        <RowDefinition Height="40" />
                    </Grid.RowDefinitions>
                    <Border Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Margin="1,0,0,0" Name="dockPanel1" VerticalAlignment="Stretch" Grid.Row="1" Width="Auto">
                        <Grid>
                            <my:VImage Icon="/VAdvantage;component/Images/right_up.png" toolkit:DockPanel.Dock="Right" Height="35" IsTabStop="True" Margin="0,5,0,0" Name="vbtnGenOk" Width="35" Click="vbtnGenOk_Click" HorizontalAlignment="Right" />
                            <my:VImage Icon="/VAdvantage;component/Images/refresh32.png" toolkit:DockPanel.Dock="Left" Height="35" Margin="0,5,0,0" Name="imgBtnRefresh" Width="35" Click="imgBtnRefresh_Click" HorizontalAlignment="Left" />
                        </Grid>
                    </Border>
                    <ScrollViewer Height="Auto" HorizontalAlignment="Stretch" Name="scrollViewer1" VerticalAlignment="Stretch" Width="Auto" Grid.ColumnSpan="3" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
                        <my1:VHtmlTextBlock x:Name="vtxtHtml" VerticalContentAlignment="Center" />
                    </ScrollViewer>
                </Grid>
            </sdk:TabItem>
        </my:VTabControl>
        <my1:VStatusBar Grid.Row="1" HorizontalAlignment="Stretch" x:Name="vlblStatusInfo" VerticalAlignment="Stretch" Height="Auto" Width="Auto" HorizontalContentAlignment="Left" />
    </Grid>
    <Grid x:Name="busyWindow" Opacity=".2" Background="LightGray" Visibility="Collapsed" MouseLeftButtonDown="busyWindow_MouseLeftButtonDown" >
        <TextBlock x:Name="txtBusy" FontSize="20" FontStyle="Italic" Visibility="Collapsed" HorizontalAlignment="Center" Text="Loading...." VerticalAlignment="Center"></TextBlock>
    </Grid>
    </Grid>

</UserControl>
